package main

import (
	"context"
	"fmt"
	proto "go_demo01/day07/demo01/proto"
)

func getServerClient() {

	greeter := proto.NewGreeterService("greeter", nil)
	// requestData := &proto.HelloRequest{
	// 	Name: "John",
	// }
	// 这里有问题，请求结果是500 暂时未处理
	resp, err := greeter.Hello(context.TODO(), &proto.HelloRequest{
		Name: "John",
	})
	if err != nil {
		fmt.Println("err", err)

		return
	}
	fmt.Println(resp)
}

func main() {
	getServerClient()
}
